
exports.up = function(knex, Promise) {

  return Promise.all(
    [knex.schema.createTableIfNotExists('hentaiImgs', function (table) {
      table.increments()
      table.string('onlyCode')
      table.integer('pageNumber')
      table.string('imgUrl')
      table.timestamps()
      table.index('onlyCode')
    })]
  )
};

exports.down = function(knex, Promise) {
  return Promise.all(
    [knex.schema.dropTable('hentaiImgs')]
  )
};
